﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using TyMES.Model.Record;


namespace TyMES.ViewModel.Record.TighteningDataVMs
{
    public partial class TighteningDataTemplateVM : BaseTemplateVM
    {
        public ExcelPropety TID_Excel = ExcelPropety.CreateProperty<TighteningData>(x => x.TID);
        public ExcelPropety toolSerialNum_Excel = ExcelPropety.CreateProperty<TighteningData>(x => x.toolSerialNum);
        public ExcelPropety tighteningID_Excel = ExcelPropety.CreateProperty<TighteningData>(x => x.tighteningID);
        public ExcelPropety tool_id_Excel = ExcelPropety.CreateProperty<TighteningData>(x => x.tool_id);
        public ExcelPropety sn_Excel = ExcelPropety.CreateProperty<TighteningData>(x => x.sn);
        public ExcelPropety project_name_Excel = ExcelPropety.CreateProperty<TighteningData>(x => x.project_name);
        public ExcelPropety torque_Excel = ExcelPropety.CreateProperty<TighteningData>(x => x.torque);
        public ExcelPropety angle_Excel = ExcelPropety.CreateProperty<TighteningData>(x => x.angle);
        public ExcelPropety tightening_status_Excel = ExcelPropety.CreateProperty<TighteningData>(x => x.tightening_status);
        public ExcelPropety rawdata_time_Excel = ExcelPropety.CreateProperty<TighteningData>(x => x.rawdata_time);
        public ExcelPropety screw_id_Excel = ExcelPropety.CreateProperty<TighteningData>(x => x.screw_id);
        public ExcelPropety PointNum_Excel = ExcelPropety.CreateProperty<TighteningData>(x => x.PointNum);
        public ExcelPropety angle_offset_Excel = ExcelPropety.CreateProperty<TighteningData>(x => x.angle_offset);
        public ExcelPropety ArrTorque_Excel = ExcelPropety.CreateProperty<TighteningData>(x => x.ArrTorque);
        public ExcelPropety upload_status_Excel = ExcelPropety.CreateProperty<TighteningData>(x => x.upload_status);
        public ExcelPropety upload_time_Excel = ExcelPropety.CreateProperty<TighteningData>(x => x.upload_time);
        public ExcelPropety filed1_Excel = ExcelPropety.CreateProperty<TighteningData>(x => x.filed1);
        public ExcelPropety filed2_Excel = ExcelPropety.CreateProperty<TighteningData>(x => x.filed2);

	    protected override void InitVM()
        {
        }

    }

    public class TighteningDataImportVM : BaseImportVM<TighteningDataTemplateVM, TighteningData>
    {

    }

}
